from pyswt import *

if __name__ == '__main__':
	initVM(CLASSPATH)
	display = Display()
	shell = Shell(display)
	shell.setText("My First SWT GUI")
	shell.setSize(200, 100)

	helloText = Text(shell, SWT.CENTER)
	helloText.setText("Hello, SWT")
	helloText.setBounds(47, 20, 100, 20)
	
	shell.open()
	while not shell.isDisposed():
		if not display.readAndDispatch():
			display.sleep()
	display.dispose()
